package com.payge.firework

import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.navigationBarsPadding
import androidx.compose.material3.Scaffold
import androidx.compose.ui.Modifier
import com.payge.firework.screens.InteractiveFireworksEffect
import com.payge.firework.ui.theme.PlayAppTheme
import timber.log.Timber


class MainActivity : ComponentActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        enableEdgeToEdge()
        setContent {
            PlayAppTheme {
                Scaffold(
                    Modifier.navigationBarsPadding().fillMaxSize()
                ) { innerPadding ->
                    Timber.d("Scaffold $innerPadding")
                    InteractiveFireworksEffect(
                        width = resources.displayMetrics.widthPixels,
                        height = resources.displayMetrics.heightPixels
                    )
                }
            }
        }
    }
}
